/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Implementation.SourceCode.entities;

import Implementation.SourceCode.Utilities.Utilities;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author apple
 */
public class diengiai {
    private int id;
    private int ngay;
    private int thang;
    private int nam;
    private int hoadon;
    private String diengiai;
    private long sotien;
    private String thutu;
    private String tendaydu;
    private int thutusheet;


    public int getNam() {
        return nam;
    }

    public void setNam(int nam) {
        this.nam = nam;
    }
    
    public String getTendaydu() {
        return tendaydu;
    }

    public void setTendaydu(String tendaydu) {
        this.tendaydu = tendaydu;
    }

    public int getThutusheet() {
        return thutusheet;
    }

    public void setThutusheet(int thutusheet) {
        this.thutusheet = thutusheet;
    }

    public String getThutu() {
        return thutu;
    }

    public void setThutu(String thutu) {
        this.thutu = thutu;
    }

    public String getDiengiai() {
        return diengiai;
    }

    public void setDiengiai(String diengiai) {
        try {
            this.diengiai = Utilities.replaceLoadData(diengiai);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public int getHoadon() {
        return hoadon;
    }

    public void setHoadon(int hoadon) {
        this.hoadon = hoadon;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNgay() {
        return ngay;
    }

    public void setNgay(int ngay) {
        this.ngay = ngay;
    }

    public long getSotien() {
        return sotien;
    }

    public void setSotien(long sotien) {
        this.sotien = sotien;
    }

    public int getThang() {
        return thang;
    }

    public void setThang(int thang) {
        this.thang = thang;
    }

    @Override
    public String toString(){
        return diengiai;
    }
}
